<?php
namespace Kxdrmobile\Model;
use Think\Model\ViewModel;
// 活动包含的奖品视图
class EventgiftsViewModel extends ViewModel {
   public $viewFields = array(
     'gift'=>array('_table'=>"sm_kxdr_event_gifts",'id','gift_id','quantity','quantity_install','score_diff','get_type','add_time','getting_json','probability','type','level','level_name','lottery_times','name','promoid','tagid','pic_url','advance','every_minute','range_time_start','range_time_end','every_lotts','advance_quantity','ext_rule','medal_id','medal_name','medal_pic','rule_medal_id','rule_medal_name','rule_medal_pic','medal_quant','collect_items','order_items','cart_items','show_title','show_content','jifen','payment','pay_time_start','pay_time_end','_type'=>'LEFT'),
     'sys_gift'=>array('_table'=>"sm_gifts",'_on'=>'gift.gift_id=sys_gift.id','type','level','status','name'=>'sys_name','details','price','probability','isshow','quantity','quantity_initial','zailai','jifen','medal_id','medal_name','medal_pic','pic_url'=>'sys_pic_url','link','num_iids','event_id','promoid','tagid','sid','cfg','_type'=>'LEFT'),
     );
 }
 